Skip to main content

API

info

This plugin is Open Source and you can view how every method works. I would always recommend checking the source code to get a better idea of the plugin and how best to use it in yours!

The repository can be found here.

Need help? Join the Discord! We would love to have you!

Adding as dependency

Image Sheild

Maven

        <repository>
<id>hmc-repo-releases</id>
<name>HibiscusMC Repository</name>
<url>https://repo.hibiscusmc.com/releases</url>
</repository>
        <dependency>
<groupId>com.hibiscusmc</groupId>
<artifactId>HMCCosmetics</artifactId>
<version>{version}</version>
</dependency>

Gradle (Groovy)

maven {
url "https://repo.hibiscusmc.com/releases"
}
compileOnly "com.hibiscusmc:HMCCosmetics:{version}"

Gradle (Kotlin)

maven {
url = uri("https://repo.hibiscusmc.com/releases")
}
compileOnly("com.hibiscusmc:HMCCosmetics:{version}")

PluginYml

depend: [HMCCosmetics]

Events

All events can be found here.

API Class

A stable API class can be found here

Cosmetics

You can get a cosmetic with:

Cosmetic cosmetic = HMCCosmeticsAPI.getCosmetic(id);

Cosmetic User

You can get a CosmeticUser with:

CosmeticUser user = HMCCosmeticsAPI.getUser(playerUnqiueId);